package com.test.work.shengang;

import java.nio.charset.StandardCharsets;
import java.util.Base64;

/**
 * @Classname ShengangDecoder
 * @Description TODO
 * @Date 2025/2/7 17:25
 * @Created by rgs
 */
public class ShengangDecoder {

    public static void main(String[] args) {

        String appId = "NzIyNjA0NTA2NDI4MzQ2MzY5";
        String base64 = "eyJnb0JhY2tVcmwiOiJodHRwOi8vMTAuMTg4LjEzMy4xNTozMDA3LyMvc3VicGFja2FnZXMvcHJpc3Bjb2xsZWN0aW9uL3BhZ2VzL3RyYWRlL2J1eS9idXlDb250cmFjdC9idXlDb250cmFjdD9mbG93Q29kZT0xNzM4OTE4NTA5NjY2MTA3OSIsInByb2R1Y3RDb2RlIjoiMDExMDEwIiwiZmxvd0NvZGUiOiIxNzM4OTE4NTA5NjY2MTA3OSIsInJvdXRlUGFnZSI6IjEiLCJyaXNrTWF0Y2hGbGciOiIxIiwiYXBwSWQiOiJOekl5TmpBME5UQTJOREk0TXpRMk16WTUiLCJzaWduIjoiM0U0QTk1ODA3RDhGQTZCQzY1MDEwNjhERDJBMjNCRjkiLCJhZ3JlZSI6IjEiLCJjdXN0b21lck5vIjoiNTA4NDAyIiwidHJhZGVVcmwiOiJodHRwOi8vMTAuMTg4LjEzMy4xNTozMDA3LyMvc3VicGFja2FnZXMvcHJpc3Bjb2xsZWN0aW9uL3BhZ2VzL3RyYWRlL2J1eS9idXlDb250cmFjdC9idXlDb250cmFjdD9mbG93Q29kZT0xNzM4OTE4NTA5NjY2MTA3OSIsInRpbWVzdGFtcCI6IjE3Mzg5MTg1MDk3NTkiLCJleHRJbmZvIjoie1wiaW52ZXN0Umlza1RvbGVyYW5jZVwiOlwiM1wiLFwicHJvZHVjdFJpc2tMZXZlbFwiOlwiMVwiLFwicHViUHJvZmVzc2lvbmFsSW52ZXN0b3JGbGFnXCI6XCIwXCIsXCJ0ZW1wbGF0ZUlkc1wiOltcInNnenEtMDAwMDAwMTBcIixcIjIwMjMxMDI1NTEzMTYwXCIsXCIxMDAwMDEyM1wiXSxcInRpbWVzdGFtcFwiOlwiMTczODkxODUwOTY4MlwifSJ9";
        shengangDecoder(base64);


    }



    public static void shengangDecoder(String baseStr){
        String jiemi = new String(Base64.getDecoder().decode(baseStr.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8);
        System.out.println(jiemi);

    }
}
